<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	<a href="#" class="logo"> <img
		src="#{facesContext.externalContext.requestContextPath}/images/su_logo.png"
		alt="logo" />
	</a>
	<h:form id="inboxForm">
		<div class="right-controls">
			<ul class="top-links layout">
				<li><h:commandLink>
						<h:graphicImage value="/images/icono-usuario.png" />
						<rich:componentControl target="popup" operation="show" />
					</h:commandLink></li>
				<li><h:commandLink action="#{general.logout}">
						<h:graphicImage value="/images/icon-logout.png" />
					</h:commandLink></li>
			</ul>
			<rich:popupPanel id="popup" modal="false" autosized="true"
				resizeable="false">
			        <f:facet name="header">
			            <h:outputText value="#{res['texto.info']}" />
			        </f:facet>
			        <f:facet name="controls">
			            <h:outputLink value="#"
						onclick="#{rich:component('popup')}.hide(); return false;">X</h:outputLink>
			        </f:facet>
				<fieldset>
					<legend>Usuario Logeado</legend>

					<h:panelGrid columns="2" columnClasses="atop">
						<h:outputText value="#{res['mnugral.usuario']}: " />
						<h:inputText label="#{res['mnugral.usuario']}" id="user"
							readonly="true" required="true" value="#{login.usuario}">
						</h:inputText>
						<h:outputText value="#{res['mnugral.nombreUsuario']}: " />
						<h:inputText label="#{res['mnugral.nombreUsuario']}" id="name"
							readonly="true" required="true" value="#{Login.nomUsuario}">
						</h:inputText>
						<h:outputText value="#{res['mnugral.categoria']}: " />
						<h:inputText label="#{res['mnugral.categoria']}" id="cat"
							readonly="true" required="true" value="#{Login.catusu}">
						</h:inputText>
						<h:outputText value="#{res['mnugral.actuallog']}:" />
						<h:inputText label="#{res['mnugral.actuallog']}" id="loginAc"
							required="true" readonly="true" value="#{Login.fechaActualLog}">
							<f:convertDateTime type="both" dateStyle="short"
								timeStyle="short" />
						</h:inputText>
						<h:outputText value="#{res['mnugral.ultimolog']}:" />
						<h:inputText label="#{res['mnugral.ultimolog']}" id="ultlog"
							required="true" readonly="true" value="#{Login.fechaUltimoLog}">
							<f:convertDateTime type="both" dateStyle="short"
								timeStyle="short" />
						</h:inputText>
						<h:outputText value="#{sessionScope.estadoUsuarioAD}"
							rendered="#{sessionScope.estadoUsuarioAD != null}"
							inlineStyle="font-size:80.0%; color:rgb(255,0,0); font-weight:bold;" />
					</h:panelGrid>
				</fieldset>
		
    		</rich:popupPanel>
		</div>
	</h:form>
</ui:fragment>
